﻿<?php
if(empty($ids))
	$ids = 'about';
$condition = "type='".$ids."'";
$data = $tpl->GetSingleInfo('single',$condition);	
extract($data);
?>
<div class="pageContent" style="padding:4px">
	<div class="frameWork" layoutH="10">
		<h3 style="color:#f00;padding:0 0 0 24px;font:700 14px/24px '';background:url(/master/skin/manage/images/ico.gif) no-repeat 4px 6px">单页信息管理</h3>
		<ul class="tree treeFolder">  
			<li><a href="javascript:void(0);">基本单页</a>
				<ul>
					<li><a target="navTab" lang="content" rel="single" ids="about" title="单页-关于我们">关于我们</a></li>	
					<li><a target="navTab" lang="content" rel="single" ids="guide" title="单页-新手指南">新手指南</a></li>	
					<li><a target="navTab" lang="content" rel="single" ids="payment" title="单页-付款方式">付款方式</a></li>	
					<li><a target="navTab" lang="content" rel="single" ids="service" title="单页-客户服务">客户服务</a></li>	
					<li><a target="navTab" lang="content" rel="single" ids="legal" title="单页-法律声明">法律声明</a></li>	
					<li><a target="navTab" lang="content" rel="single" ids="disclaimer" title="单页-免责声明">免责声明</a></li>	
					<li><a target="navTab" lang="content" rel="single" ids="privacy" title="单页-隐私条款">隐私条款</a></li>	
					<li><a target="navTab" lang="content" rel="single" ids="suggestion" title="单页-投诉建议">投诉建议</a></li>	
					<li><a target="navTab" lang="content" rel="single" ids="contact" title="单页-联系我们">联系我们</a></li>	
					<li><a target="navTab" lang="content" rel="single" ids="licence" title="单页-服务协议">服务协议</a></li>	
				</ul>
			</li>			
		</ul>
	</div>
	<div class="frameSpace">
		<form method="post" action="handle.php?m=single&c=save&ids=<?php echo isset($id)?$id:'0';?>" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<div class="pageFormContent">
            <table class="task" width="100%">
				<tr>
					<td class="td1">页面名称：</td>
					<td class="td2">
						<input type="hidden" name="type" value="<?php echo $ids;?>"/>
						<input type="text" name="title" class="required normal" value="<?php echo $title;?>"/>
						<ins>(页面名称，如"关于我们")</ins>
					</td>
				</tr>				
				<tr>
					<td class="td1">排序号：</td>
					<td class="td2">
						<input type="text" name="pid"  class="required digits short" value="<?php echo $pid;?>"/>
						<ins>(页面排序号，数字越小，排名越前)</ins>
					</td>
				</tr>				
				<tr>
					<td class="td1">页面关键字</td>
					<td class="td2">
						<input name="keyword" type="text" value="<?php echo $keyword;?>"/>
						<ins>(页面关键字，多个关键字用,隔开)</ins>
					</td>
				</tr>
				<tr>
					<td class="td1">页面描述：</td>
					<td class="td2">
						<textarea  name="keydesc" style="height:80px"><?php echo $keydesc;?></textarea>
					</td>
				</tr>
				<tr>
					<td class="td1">页面内容：</td>
					<td class="td3">&nbsp;</td>
				</tr>
				<tr>
					<td class="td2" colspan="2">
						<textarea name="content" class="editor" style="width:100%;height:470px;margin:0"><?php echo $content;?></textarea>
					</td>
				</tr>                                
			</table>                                       
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>		
	</div>
</div>
